package com.service.user.feign;

import com.client.model.pojo.user.ArUser;
import com.client.model.vo.common.Result;
import com.client.model.vo.userVo.ArUserVo;
import com.service.user.feignService.UserFeignService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Author : RulerWood
 * @Data : 2024/4/2 - 21:03
 */
@Slf4j
@RestController
@RequestMapping("/airui/api/userFeign")
public class UserFeignController {
    @Autowired
    private UserFeignService userFeignService;

    @PostMapping("/userInfo")
    public Result<String> theUserIsExist(@RequestBody ArUserVo arUserVo) {
        return this.userFeignService.theUserIsExist(arUserVo);
    }
    @GetMapping("/{id}")
    public Result<ArUser> getUserById(@PathVariable("id") Long id) {
        return this.userFeignService.getUserById(id);
    }

}
